package com.audaque.springboot.foshanupload.redis.anno;

/**
 * @author zgb
 * @desc ...
 * @date 2021-12-26 19:25:25
 */
import java.lang.annotation.*;

@Target(value = ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RedisLuaIncrRateLimiterAnno {

    //往令牌桶放入令牌的速率
    double value() default  Double.MAX_VALUE;
    String name() default "";
    String msg() default "流量超过阈值";
    /**
     *  true：马上返回是否抢到令牌；false:循环直到抢到令牌
     */
    boolean resultYn() default false;
}
